<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;

/**
 * @ORM\Entity
 * @ORM\Table(name="user_login_history")
 */
class UserHistory extends MappedSuperclassBase
{
    /**
     *
     * @var string
     * @ORM\Column(type="string")
     */
    protected $ip;
    /**
     *
     * @var datetime
     * @ORM\Column(type="datetime", name="date")
     * @Gedmo\Timestampable(on="create")
     */
    protected $date;
    /**
     *
     * @var int
     * @ORM\ManyToOne(targetEntity="User", inversedBy="historyLogin")
     */
    protected $user;
    
    public function getIp()
    {
        return $this->ip;
    }

    public function setIp($ip)
    {
        $this->ip = $ip;
    }

    public function getDate()
    {
        return $this->date;
    }

    public function setDate(datetime $date)
    {
        $this->date = $date;
    }

    public function getUser()
    {
        return $this->user;
    }

    public function setUser(User $user)
    {
        $this->user = $user;
    }


}